<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<meta charset="utf-8">
<title>管理系统主页面</title>
<style>
body{font-family:Arial; font-size:14px;line-height:180%;padding-top: 20px;} /*总控制，可忽略此行*/
table tr:first-child{background:#0066CC; color:#fff;font-weight:bold;} /*第一行标题蓝色背景*/
table{border-top:20px solid #C1DAD7;border-left:1pt solid #C1DAD7;margin: 0 auto;}
td{ padding:5px 10px; text-align:center;border-right:1pt solid #C1DAD7;border-bottom:1pt solid #C1DAD7;}
tr:nth-of-type(odd){ background:#c6f9f7} /* odd 标识奇数行，even标识偶数行 */
tr:hover{ background: #E0F0F0;} /*鼠标悬停后表格背景颜色*/
</style>
</head>
<body>
<table width='600' border='0' cellspacing='0' cellpadding='0' align='center'>
  <tr>
    <td>学生编号</td>
    <td>姓名</td>
    <td>年龄</td>
    <td>家庭地址</td>
    <td>性别</td>
    <td>爱好</td>
    <td>是否删除</td>
    <td>是否修改</td>
  </tr>
  <c:forEach items="${student}" var="s">
    <tr>
      <td>${s.id}</td>
      <td>${s.name}</td>
      <td>${s.age}</td>
      <td>${s.addr}</td>
      <td>${s.sex}</td>
      <td>${s.loveing}</td>
      <td><a href="delete?id=${s.id}"> 删除</a></td>
      <td><a href="updataView?id=${s.id}">修改</a></td>
    </tr>
  </c:forEach>
</table>
</body>
</html>